package cn.itcast.wanxinp2p.account.service;

import cn.itcast.wanxinp2p.account.entity.Account;
import cn.itcast.wanxinp2p.api.account.model.AccountDTO;
import cn.itcast.wanxinp2p.api.account.model.AccountLoginDTO;
import cn.itcast.wanxinp2p.api.account.model.AccountRegisterDTO;
import cn.itcast.wanxinp2p.common.domain.RestResponse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * TODO
 *
 * @Description
 * @Author Administrator
 * @Date 2023/8/28 12:36
 **/

public interface AccountService extends IService<Account> {
    //短信验证码
    RestResponse getSMSCode(String mobile);
    //手机号验证 短信验证
    RestResponse<Integer> checkMobile(String mobile, String key, String code);
    //注册
    RestResponse<AccountDTO> register(AccountRegisterDTO accountRegisterDTO);
//登录
AccountDTO login(AccountLoginDTO accountLoginDTO);

}
